﻿<UserControl x:Class="Mengsk.ProxyDelivery.App.UI.Goods.GoodsDuplicateCleanUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Orientation="Horizontal">
            <Button Name="btnQuery" Content="查询" Margin="3" Width="60" Click="btnQuery_Click"/>
            <Button Name="btnProcess" Content="删除选择" Margin="3" Width="60" Click="btnProcess_Click"/>
            <Button Name="btnProcessAll" Content="删除所有" Margin="3" Click="btnProcessAll_Click"/>
            <TextBlock Name="tbTotal" Margin="3" VerticalAlignment="Center"/>
            <TextBlock Name="tbMessage" Margin="3" VerticalAlignment="Center"/>
        </StackPanel>
        <DataGrid Grid.Row="1" AutoGenerateColumns="False" IsReadOnly="True" GridLinesVisibility="All" Name="dgvVendors">
            <DataGrid.Columns>
                <DataGridTextColumn Header="编号" Binding="{Binding Id}"/>
                <DataGridTextColumn Header="名称" Binding="{Binding Name}"/>
                <DataGridTextColumn Header="拼音名称" Binding="{Binding PingyingName}"/>
                <DataGridTextColumn Header="注册时间" Binding="{Binding CreateTime,StringFormat=yyyy-MM-dd}"/>
                <DataGridTextColumn Header="状态" Binding="{Binding Enabled ,Converter={StaticResource boolConverter},ConverterParameter=禁用|启用}"/>
                <DataGridTextColumn Header="市场地址" Binding="{Binding MarketAddress}"/>
                <DataGridHyperlinkColumn Header="主页" Binding="{Binding HomePage}">
                    <DataGridHyperlinkColumn.ElementStyle>
                        <Style>
                            <EventSetter Event="Hyperlink.Click" Handler="Open_Click"/>
                        </Style>
                    </DataGridHyperlinkColumn.ElementStyle>
                </DataGridHyperlinkColumn>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</UserControl>
